package org.codefinger.dao.callback;

import java.sql.ResultSet;

import org.codefinger.dao.impl.ResultSetCallback;

public class FloatQueryCallback implements ResultSetCallback<Float> {

	public static final FloatQueryCallback	INSTANCE	= new FloatQueryCallback();

	private FloatQueryCallback() {

	}

	@Override
	public Float getResult(ResultSet resultSet, String[] aliases)
			throws Throwable {
		if (resultSet.next()) {
			return resultSet.getFloat(1);
		}
		return null;
	}

}
